﻿/*
* 创建者：LIYINFAI
* 创建时间：2023/11/1 17:13:30
* 描述：DeviceInfo
* --------------------------------------
* 修改说明：
* --------------------------------------
*/
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppFindDevice
{
    public class DeviceInfo
    {
        [JsonProperty("remark")]
        public string Remark { get; set; }
        [JsonProperty("command")]
        public string Command { get; set; }
        [JsonProperty("isHex")]
        public bool IsHex { get; set; }
        public static List<DeviceInfo> Devices = new List<DeviceInfo>() {
            new DeviceInfo(){
                Remark="基恩士扫码枪",
                Command="LON\r\n",
                IsHex=false,
            },
            new DeviceInfo(){
                Remark="诺益氦检仪",
                Command="S1\r",
                IsHex=false,
            },
            new DeviceInfo(){
                Remark="锐捷RJ6902",
                Command="7B 00 08 02 0F 00 19 7D",
                IsHex=true,
            },
            new DeviceInfo(){
                Remark="GAGF天平",
                Command="S\r\n",
                IsHex=false,
            },
            new DeviceInfo(){
                Remark="HIOKIST5520",
                Command="*IDN?\r\n",
                IsHex=false,
            },
            new DeviceInfo(){
                Remark="HIOKI3153",
                Command="*IDN?\r\n",
                IsHex=false,
            },
        };
        public override string ToString()
        {
            return this.Remark;
        }
    }
}
